/**
 * Created by admin on 2016/11/15.
 */
var orders = function () {

    //goExpressDetail
    var viewExpress = function () {
        $('.viewExpress').on('click',function () {
            if (getUserLoginStatus()) {
                var expressCode = $(this).attr('data-expressCode');
                var expressNO = $(this).attr('data-expressNO');
                var expressName = $(this).attr('data-expressName');
                var imgSrc = $(this).parents('.am-container').find('.cart-shop-pro img:first').attr('src');
                window.localStorage.setItem('imgUrl',imgSrc);
                window.location.href='/express/?expressCode='+expressCode+'&expressNO='+expressNO+'&expressName='+expressName;
            } else {
                doLogin();
            }
        });
    };

    return{
        init:function(){
            viewExpress();
        }
    }
}();